Skip to content

Added simple calc made using asm and c#529

Merged
fridayjoshi merged 1 commit intojosharsh:masterfrom
AMNTDEVIL:master
Apr 26, 2026
Merged

Added simple calc made using asm and c#529
fridayjoshi merged 1 commit intojosharsh:masterfrom
AMNTDEVIL:master

Conversation

@AMNTDEVIL
Copy link
Copy Markdown
Contributor

This program is intended to demonstrate how low-level assembly interacts with high-level C, specifically for floating-point arithmetic. By implementing addition, subtraction, multiplication, and division in assembly while handling input and logic in C, it shows:

  • How C calls external assembly functions using extern.
  • How arguments and return values for floats are passed via SSE registers.
  • The difference between high-level logic (switch, scanf) and low-level computation.
  • A clear, hands-on example of mixing assembly and C in a small, understandable program.

Even though it’s short, it’s enough to teach beginners how low-level instructions work under the hood without overwhelming them.

@github-actions github-actions Bot added the c label Apr 5, 2026
@AMNTDEVIL AMNTDEVIL closed this Apr 5, 2026
@AMNTDEVIL AMNTDEVIL reopened this Apr 5, 2026
@AMNTDEVIL
Copy link
Copy Markdown
Contributor Author

Added simple calculator intending to show how in low level add, sub, mul and div is performed

@fridayjoshi fridayjoshi merged commit e5ee5f4 into josharsh:master Apr 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants